package com.parenting.feign.controller;

import com.parenting.feign.entities.OrderDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Administrator
 */
@FeignClient(value = "order-applet-server", path = "/" ,configuration = FeignClientProperties.FeignClientConfiguration.class)
public interface IFeignAppletOrderController {
    @ApiOperation(value = "获得订单")
    @GetMapping("/api/order/{orderId}")
    OrderDTO getOrderById(@PathVariable("orderId") String orderId);
}
